import Vue from "vue";
import Router from "vue-router";
import Home from "./views/layout/Home.vue";
import LayOut from "./views/layout/layout";

Vue.use(Router);

export default new Router({
  routes: [{
    path: "/",
    name: "LayOut",
    component: LayOut,
    redirect: '/Home',
    children: [{
      path: "/Home",
      name: "Home",
      component: Home
    }, {
      path: "/about",
      name: "about",
      component: () =>
        import ("./views/About.vue")
    }]
  }]
});